package com.yonyou.cyxdms.sysAuth.service.service.dealerchannel;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yonyou.cyxdms.sysAuth.service.dto.dealer.MsgRecordDTO;
import com.yonyou.cyxdms.sysAuth.service.dto.dealer.MsgRecordManagePO;
import com.yonyou.cyxdms.sysAuth.service.dto.dealer.MsgTemplateDTO;

import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author duxiaoguang
 * @since 2019-09-04
 */
public interface MsgRecordService {
    /**
     * 通知
     * @param page
     * @param queryCondition
     * @return
     */
    public IPage<Map<String, Object>> selectPageBysql(Page page, Map<String, Object> queryCondition);

    public Integer deleteById(Integer userId);

    public IPage<Map<String, Object>> selectPageByTzs(Page page, Map<String, Object> queryCondition);

    public List<Map<String,String>> selectMsgType();

    /**
     * 公告
     */
    public IPage<Map<String, Object>> selectPageNotice(Page page, Map<String, Object> queryCondition);

    public Integer addNotice(MsgRecordDTO msgRecordDTO);

    public List<Map<String,String>> queryNotices(Integer msgId);

    public  List<MsgRecordDTO> updateStatus(Integer msgId,MsgRecordDTO msgRecordDTO);

    public  void printUpdateStatus(List<MsgRecordDTO> msgRecordDTO);


    public void updateNotice(MsgRecordDTO msgRecordDTO);

    public List<Map<String,String>> queryNoticeMange(Integer msgId);

    public List<Map<String, String>> queryNoticeIs(Integer msgId);

    public List<Map<String, String>> queryNoticeNo(Integer msgId);

    public IPage<Map<String, Object>> queryNotice(Page page, Map<String, Object> queryCondition);

    public List<Map<String,String>> queryNoticeMaintain(Integer msgId);

    public List<Map<String,String>> queryNoticesMobile(Integer userId);

    public Integer deleteByIdGg(Integer userId);

    public void updateStatusIo(Integer msgId);

    Integer addnoticecc(MsgRecordDTO msgRecordDTO);
}
